<div id="main-content"> <!-- Main Content Section with everything -->
	<h2><?php echo '<?php echo t("'.$table.'");?>' ?></h2>
    <p>
    
   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="50%"> 
    <form id="frmFind" name="frmFind" method="post" action="<?php echo "<?php echo site_url('".$table."/find')?>"?>">
	<input name="txt_find" id="txt_find" type="text" value=""  style="width:200px" />
    <input name="submit" type="submit" value="<?php echo "<?php echo t('timkiem')?>"; ?>" class="button" />
<?php echo '<?php if ($this->session->userdata("babycms_find_'.$table.'")) { ?>' ?>
    <input name="submit2" type="submit" value="Reset" class="button btnReset" /> <?php echo '<?php } ?>' ?>
    </form></td>
    <td width="50%">
    <form id="frmFilter" name="frmFilter" method="post" action="<?php echo site_url('pages/filter')?>">
	<?php echo $filter; ?>
    <input name="submit" type="submit" value="<?php echo t('loc')?>" class="button" />
<?php 
if ($this->session->userdata('babycms_filter_page')) { ?>
    <input name="submit2" type="submit" value="Reset" class="button btnReset" /> <?php } ?>
    </form>
    
    </td>
  </tr>
</table>

    
    </p>
    
			<div class="clear"></div> <!-- End .clear -->
			
			<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header_khoa">
					
					<h3><?php echo t("quanlytrang"); ?></h3>
                    
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				<?php echo notify_get_messages(); ?>
    <div>
<?php 
        $this->table->set_heading(t('trang'), t('trangthai'), t('muc'), 'id', anchor('pages/add', t('them'), 'title="'.t('them').'" class="button"'));
        
        foreach ($query->result_array() as $row) {
            $urlEdit = anchor(site_url("pages/edit/".$row["id"]), nbs(5), 'title="'.t('sua').'" class="btnEdit"');
            $urlDel = ianchor('#', nbs(5), 'onclick="if(window.confirm(\''.t('msg_del').'\')) 
	               window.location=\''.site_url("pages/del/".$row["id"]).'\';" class="btnDel" title="'.t('xoa').'"');
            $this->table->add_row($row['title'], $row['status'], $row["theloai"], $row["id"], $urlEdit. nbs(3) . $urlDel);
        }
        
        echo $this->table->generate();
    
 ?>       
 <tfoot>
                      <tr>
                        <td colspan="5"><div class="pagination"><?php echo $paging;?></div>
                          <!-- End .pagination -->
                          <div class="clear"></div></td>
                      </tr>
                    </tfoot>         			    
     </div> 
				<!-- End .content-box-content -->
				
			</div> <!-- End .content-box --><!-- End .content-box --><!-- End .content-box -->
<div class="clear"></div>
			
			
			<!-- Start notifycations -->
			<!-- End notifycations -->
			
		  <div id="footer">
				<small> <!-- Remove this notice or replace it with whatever you want -->
						<?php echo power;?>
				</small>
			</div><!-- End #footer -->
			
		</div> <!-- End #main-content -->